package com.frank.auth.api;

import com.frank.auth.api.fallback.UserFeignServiceFallback;
import com.frank.auth.entity.AuthUserDto;
import com.frank.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/3/26
 * @description
 */
@FeignClient(value = "jc-club-auth", path = "/user", fallback = UserFeignServiceFallback.class)
public interface UserFeignService {

    @GetMapping("/getUserInfo")
    Result<AuthUserDto> getUserInfo(@RequestParam("username") String username);
}
